﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.Globalization;
using OgilvyOne.UKNow.IDAL;

namespace OgilvyOne.UKNow.DALFactory
{
    public class RemberSetFactory
    {
        public static readonly IDALRemberSet ChineseRemberSetDAL = new RemberSetDal((int)LanguageType.cn);
        public static readonly IDALRemberSet EnglishRemberSetDAL = new RemberSetDal((int)LanguageType.en);

       public static IDALRemberSet Create(int langID)
        {
            if (((LanguageType)Enum.Parse(typeof(LanguageType), langID.ToString())) == LanguageType.cn)
                return ChineseRemberSetDAL;
            else
                return EnglishRemberSetDAL;
        }
    }
}
